/*
 * @Author: lwHao
 * @Date: 2020-09-20 15:51:00
 * @LastEditors: lwHao
 * @LastEditTime: 2020-09-20 15:52:41
 */

import {request}  from '@/plugins/request'

export const followUser = username => {
  return request({
    method: 'POST',
    url: `/api/profiles/${username}/follow`
  })
}

export const unfollowUser = username => {
  return request({
    method: 'DELETE',
    url: `/api/profiles/${username}/follow`
  })
}